// CRC_FICDlg.h : header file
//

#if !defined(AFX_CRC_FICDLG_H__C70F9F38_2A40_11D4_BBF9_485400FF8BAF__INCLUDED_)
#define AFX_CRC_FICDLG_H__C70F9F38_2A40_11D4_BBF9_485400FF8BAF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CCRC_FICDlg dialog

class CCRC_FICDlg : public CDialog
{
// Construction
public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	CCRC_FICDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCRC_FICDlg)
	enum { IDD = IDD_CRC_FIC_DIALOG };
	CString	m_csFileName;
	CString	m_strCRC;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCRC_FICDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CToolTipCtrl m_tooltip;
	HICON m_hIcon;
      //Codes add begining here
	ULONG crc32_table[256]; // Lookup table arrays
	void Init_CRC32_Table(); // Builds Lookup table array
	ULONG Reflect(ULONG ref, char ch); // Reflects CRC bits in the lookup table
	void Open_File();                          // Opens the file and reads it
	int Get_CRC(CString& csData, DWORD dwSize); // Creates a CRC from a string buffer

	// Generated message map functions
	//{{AFX_MSG(CCRC_FICDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBrowse();
	afx_msg void OnDropFiles(HDROP hDropInfo);
	virtual    void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CRC_FICDLG_H__C70F9F38_2A40_11D4_BBF9_485400FF8BAF__INCLUDED_)
